package com.sharkburner.aeris.service.article;

import java.util.List;

import org.vaadin.addons.lazyquerycontainer.LazyQueryContainer;

import com.sharkburner.aeris.bean.article.ArticleBean;
import com.sharkburner.aeris.dao.entity.Article;
import com.sharkburner.aeris.dao.entity.Site;
import com.sharkburner.aeris.dao.entity.User;

public interface ArticleService {

    /**
     * 
     * @param user
     * @param site
     * @return
     */
    List<Article> findArticles(User user, Site site);

    LazyQueryContainer findArticles();

    /**
     * Save Articles by thread
     */
    void save(Site site, List<ArticleBean> beans);
}
